#!/bin/bash

root=$(pwd)

sourse_config_path="./source_config"
cat $sourse_config_path | while read source_config || [[ -n "$source_config" ]]; do
	if [[ -n $source_config ]]; then
		repo_name=$(echo $source_config | awk '{print $1}' )
		repo_branch=$(echo $source_config | awk '{print $2}')
		repo_path=$(echo $source_config | awk '{print $3}')
		echo "repo_name :$repo_name  branch:$repo_branch repo_path:$repo_path" 

		echo -e "\033[34mcloning $repo_name\033[0m"
		git clone $repo_path $repo_name
	fi
done